package main

import (
	"flag"
	"fmt"
	"os"

	"gitee.com/rocket049/mycrypto"
)

func main() {
	pwd := flag.String("p", "", "password")
	fn := flag.String("f", "", "input filename")
	flag.Parse()

	data, err := mycrypto.CfbDecodeFromFile(*fn, *pwd)
	fmt.Print(string(data))
	fmt.Fprintln(os.Stderr, err)
}
